package com.scs.application.modules.base.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.scs.application.modules.base.dto.OprtDTO;
import com.scs.application.modules.base.entity.Matr;
import com.scs.application.modules.base.entity.Oprt;
import com.scs.application.core.mapper.IBaseMapper;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 */
public interface OprtMapper extends IBaseMapper<Oprt> {

    public OprtDTO getOprtByCode(@Param("code") String code);

    OprtDTO getOprtById(@Param("id") Serializable id);

    Page<?> pageForSelect(IPage page, @Param(Constants.WRAPPER) QueryWrapper<Matr> wrapper, @Param("params") Map<String,Object> params, @Param("userParam") Map<String,Object> userParam);

}
